add DLLEXPORT definition for __GNUC__ >= 4
authorTony Kelman <tony@kelman.net>
Mon, 22 Sep 2014 20:51:05 +0000 (13:51 -0700)
committerTony Kelman <tony@kelman.net>
Mon, 22 Sep 2014 20:51:05 +0000 (13:51 -0700)
mojibake.h

index abebbeb2a80e363407da78f7e6f1c228134c0cf2..03069b631207522bbbf9cacd6424621b18fcaa7f 100644 (file)
@@ -81,6 +81,8 @@ enum {false, true};
 #  else
 #    define DLLEXPORT __declspec(dllimport)
 #  endif
+#elif __GNUC__ >= 4
+#  define DLLEXPORT __attribute__ ((visibility("default")))
 #else
 #  define DLLEXPORT
 #endif